(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

fstsplit(0, x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0, x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0, m) → true
leq(s(n), 0) → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Rewrite Strategy: FULL

(1) DecreasingLoopProof (EQUIVALENT transformation)

The following loop(s) give(s) rise to the lower bound Ω(n1):
The rewrite sequence
fstsplit(s(n), cons(h, t)) →+ cons(h, fstsplit(n, t))
gives rise to a decreasing loop by considering the right hand sides subterm at position [1].
The pumping substitution is [n / s(n), t / cons(h, t)].
The result substitution is [ ].

(2) BOUNDS(n^1, INF)

(3) RenamingProof (EQUIVALENT transformation)

Renamed function symbols to avoid clashes with predefined symbol.

(4) Obligation:

Runtime Complexity Relative TRS:
The TRS R consists of the following rules:

fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

S is empty.
Rewrite Strategy: FULL

(5) TypeInferenceProof (BOTH BOUNDS(ID, ID) transformation)

Infered types.

(6) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

(7) OrderProof (LOWER BOUND(ID) transformation)

Heuristically decided to analyse the following defined symbols:
fstsplit, sndsplit, leq, length, app, map_f, process

They will be analysed ascendingly in the following order:
fstsplit < process
sndsplit < process
leq < process
length < process
app < map_f
app < process
map_f < process

(8) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
fstsplit, sndsplit, leq, length, app, map_f, process

They will be analysed ascendingly in the following order:
fstsplit < process
sndsplit < process
leq < process
length < process
app < map_f
app < process
map_f < process

(9) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

Induction Base:
fstsplit(gen_0':s8_0(0), gen_nil:cons:f7_0(0)) →RΩ(1)
nil

Induction Step:
fstsplit(gen_0':s8_0(+(n10_0, 1)), gen_nil:cons:f7_0(+(n10_0, 1))) →RΩ(1)
cons(hole_a3_0, fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0))) →IH
cons(hole_a3_0, gen_nil:cons:f7_0(c11_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(10) Complex Obligation (BEST)

(11) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
sndsplit, leq, length, app, map_f, process

They will be analysed ascendingly in the following order:
sndsplit < process
leq < process
length < process
app < map_f
app < process
map_f < process

(12) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)

Induction Base:
sndsplit(gen_0':s8_0(0), gen_nil:cons:f7_0(0)) →RΩ(1)
gen_nil:cons:f7_0(0)

Induction Step:
sndsplit(gen_0':s8_0(+(n573_0, 1)), gen_nil:cons:f7_0(+(n573_0, 1))) →RΩ(1)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) →IH
gen_nil:cons:f7_0(0)

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(13) Complex Obligation (BEST)

(14) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
leq, length, app, map_f, process

They will be analysed ascendingly in the following order:
leq < process
length < process
app < map_f
app < process
map_f < process

(15) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)

Induction Base:
leq(gen_0':s8_0(0), gen_0':s8_0(0)) →RΩ(1)
true

Induction Step:
leq(gen_0':s8_0(+(n1194_0, 1)), gen_0':s8_0(+(n1194_0, 1))) →RΩ(1)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) →IH
true

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(16) Complex Obligation (BEST)

(17) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
length, app, map_f, process

They will be analysed ascendingly in the following order:
length < process
app < map_f
app < process
map_f < process

(18) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)

Induction Base:
length(gen_nil:cons:f7_0(0)) →RΩ(1)
0'

Induction Step:
length(gen_nil:cons:f7_0(+(n1553_0, 1))) →RΩ(1)
s(length(gen_nil:cons:f7_0(n1553_0))) →IH
s(gen_0':s8_0(c1554_0))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(19) Complex Obligation (BEST)

(20) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
app, map_f, process

They will be analysed ascendingly in the following order:
app < map_f
app < process
map_f < process

(21) RewriteLemmaProof (LOWER BOUND(ID) transformation)

Proved the following rewrite lemma:
app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b)) → gen_nil:cons:f7_0(+(n1859_0, b)), rt ∈ Ω(1 + n18590)

Induction Base:
app(gen_nil:cons:f7_0(0), gen_nil:cons:f7_0(b)) →RΩ(1)
gen_nil:cons:f7_0(b)

Induction Step:
app(gen_nil:cons:f7_0(+(n1859_0, 1)), gen_nil:cons:f7_0(b)) →RΩ(1)
cons(hole_a3_0, app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b))) →IH
cons(hole_a3_0, gen_nil:cons:f7_0(+(b, c1860_0)))

We have rt ∈ Ω(n1) and sz ∈ O(n). Thus, we have ircR ∈ Ω(n).

(22) Complex Obligation (BEST)

(23) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)
app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b)) → gen_nil:cons:f7_0(+(n1859_0, b)), rt ∈ Ω(1 + n18590)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
map_f, process

They will be analysed ascendingly in the following order:
map_f < process

(24) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol map_f.

(25) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)
app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b)) → gen_nil:cons:f7_0(+(n1859_0, b)), rt ∈ Ω(1 + n18590)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

The following defined symbols remain to be analysed:
process

(26) NoRewriteLemmaProof (LOWER BOUND(ID) transformation)

Could not prove a rewrite lemma for the defined symbol process.

(27) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)
app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b)) → gen_nil:cons:f7_0(+(n1859_0, b)), rt ∈ Ω(1 + n18590)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(28) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(29) BOUNDS(n^1, INF)

(30) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)
app(gen_nil:cons:f7_0(n1859_0), gen_nil:cons:f7_0(b)) → gen_nil:cons:f7_0(+(n1859_0, b)), rt ∈ Ω(1 + n18590)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(31) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(32) BOUNDS(n^1, INF)

(33) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)
length(gen_nil:cons:f7_0(n1553_0)) → gen_0':s8_0(n1553_0), rt ∈ Ω(1 + n15530)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(34) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(35) BOUNDS(n^1, INF)

(36) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)
leq(gen_0':s8_0(n1194_0), gen_0':s8_0(n1194_0)) → true, rt ∈ Ω(1 + n11940)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(37) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(38) BOUNDS(n^1, INF)

(39) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)
sndsplit(gen_0':s8_0(n573_0), gen_nil:cons:f7_0(n573_0)) → gen_nil:cons:f7_0(0), rt ∈ Ω(1 + n5730)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(40) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(41) BOUNDS(n^1, INF)

(42) Obligation:

TRS:
Rules:
fstsplit(0', x) → nil
fstsplit(s(n), nil) → nil
fstsplit(s(n), cons(h, t)) → cons(h, fstsplit(n, t))
sndsplit(0', x) → x
sndsplit(s(n), nil) → nil
sndsplit(s(n), cons(h, t)) → sndsplit(n, t)
empty(nil) → true
empty(cons(h, t)) → false
leq(0', m) → true
leq(s(n), 0') → false
leq(s(n), s(m)) → leq(n, m)
length(nil) → 0'
length(cons(h, t)) → s(length(t))
app(nil, x) → x
app(cons(h, t), x) → cons(h, app(t, x))
map_f(pid, nil) → nil
map_f(pid, cons(h, t)) → app(f(pid, h), map_f(pid, t))
process(store, m) → if1(store, m, leq(m, length(store)))
if1(store, m, true) → if2(store, m, empty(fstsplit(m, store)))
if1(store, m, false) → if3(store, m, empty(fstsplit(m, app(map_f(self, nil), store))))
if2(store, m, false) → process(app(map_f(self, nil), sndsplit(m, store)), m)
if3(store, m, false) → process(sndsplit(m, app(map_f(self, nil), store)), m)

Types:
fstsplit :: 0':s → nil:cons:f → nil:cons:f
0' :: 0':s
nil :: nil:cons:f
s :: 0':s → 0':s
cons :: a → nil:cons:f → nil:cons:f
sndsplit :: 0':s → nil:cons:f → nil:cons:f
empty :: nil:cons:f → true:false
true :: true:false
false :: true:false
leq :: 0':s → 0':s → true:false
length :: nil:cons:f → 0':s
app :: nil:cons:f → nil:cons:f → nil:cons:f
map_f :: self → nil:cons:f → nil:cons:f
f :: self → a → nil:cons:f
process :: nil:cons:f → 0':s → process:if1:if2:if3
if1 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if2 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
if3 :: nil:cons:f → 0':s → true:false → process:if1:if2:if3
self :: self
hole_nil:cons:f1_0 :: nil:cons:f
hole_0':s2_0 :: 0':s
hole_a3_0 :: a
hole_true:false4_0 :: true:false
hole_self5_0 :: self
hole_process:if1:if2:if36_0 :: process:if1:if2:if3
gen_nil:cons:f7_0 :: Nat → nil:cons:f
gen_0':s8_0 :: Nat → 0':s

Lemmas:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

Generator Equations:
gen_nil:cons:f7_0(0) ⇔ nil
gen_nil:cons:f7_0(+(x, 1)) ⇔ cons(hole_a3_0, gen_nil:cons:f7_0(x))
gen_0':s8_0(0) ⇔ 0'
gen_0':s8_0(+(x, 1)) ⇔ s(gen_0':s8_0(x))

No more defined symbols left to analyse.

(43) LowerBoundsProof (EQUIVALENT transformation)

The lowerbound Ω(n1) was proven with the following lemma:
fstsplit(gen_0':s8_0(n10_0), gen_nil:cons:f7_0(n10_0)) → gen_nil:cons:f7_0(n10_0), rt ∈ Ω(1 + n100)

(44) BOUNDS(n^1, INF)